import 'package:json_annotation/json_annotation.dart';

part 'app_update_model.g.dart';

@JsonSerializable()
class AppUpdateModel {
    AppUpdateModel();

    bool hasUpdate;
    bool isForce;
    bool isIgnorable;
    num versionCode;
    String versionName;
    String updateContent;
    String downloadUrl;
    num apkSize;
    String apkMd5;
    
    factory AppUpdateModel.fromJson(Map<String,dynamic> json) => _$AppUpdateModelFromJson(json);
    Map<String, dynamic> toJson() => _$AppUpdateModelToJson(this);
}
